/*
 * =====================================================================================
 *
 *       Filename:  Card.h
 *
 *    Description:  header file of Card
 *        Version:  1.0
 *        Created:  10/25/11 11:43:33
 *       Revision:  none
 *       Compiler:  g++
 *
 *         Author:  LittleQ Su (), 98703060@nccu.edu.tw
 *        Company:  National Chengchi University, The Department of Computer Science
 *
 * =====================================================================================
 */
#ifndef _CARD_H_
#define _CARD_H_

#include <string>

using namespace std;


class Card {
    public:
        enum Suit {HEARTS, SPADES, DIAMONDS, CLUBS};

        // Constructor
        Card ();
        Card (Suit suit, int point);

        Suit getSuit();
        int getPoint();
        string toString();
        void setId(int id);

        // Operator overloading
        Card& operator=( Card&);
        
    private:
        int _id;
        Suit _suit;
        int _point;

        string _getSuitString();
        string _getRankString();
};

#endif

